﻿using PixivVideo.Currency;
using PixivVideo.Currency.IoUtils;
using PixivVideo.Utils.IoUtils;
using PixivVideo.ViewHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PixivVideo
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
           
        }

        private void Image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            SendKeys.SendWait("{F3}");
          
            List<string> FileList = new FloderNameHelper().GetFullFileNameList(new FloderHelper().SelectFloder());
           new ThreadSleep().SetClock(3, 3);
           new AnimationHelper().ImagePlayer(LoadImage, FileList, 3, 3, TipLable, PlayButton);
            /* 
          new AnimationHelper().ImagePlayer(LoadImage, new FileHelper().SelectFile(), 2, 2); */
        }


    }
}
